package com.antu.first.dto;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 用户授权token
 *
 */
public class UserAccessToken {

	// SessionKey
	@JsonProperty("session_key")
	private String sessionKey;
	// OpenId
	@JsonProperty("openid")
	private String openId;

	public UserAccessToken() {
	}

	public UserAccessToken(String sessionKey, String openId) {

		this.sessionKey = sessionKey;
		this.openId = openId;
	}

	public String getSessionKey() {

		return sessionKey;
	}

	public void setSessionKey(String sessionKey) {
		this.sessionKey = sessionKey;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	@Override
	public String toString() {
		return "UserAccessToken{" +
				"sessionKey='" + sessionKey + '\'' +
				", openId='" + openId + '\'' +
				'}';
	}
}
